<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Common\Model;

/**
 * Description of LinkModel
 *
 * @author gangguo
 */
class LinkModel extends XuecheModel{
    //put your code here

    protected $pk = 'link_id';
    protected $tableName = 'link';
    protected $fields = array(
            'link_id', 'name','url','disabled','contact','weight','create_time'
        );

    /**
     * 清空数据缓存
     *
     */
    public function ClearAllCache() {

    }

    public function Validate($data) {
        return TRUE;
    }


        /**
     * 根据主键删除文章标题和文章内容
     * @param type $ids
     */
    public function delLink($ids){
        if(empty($ids)){
            return FALSE;
        }
        $ids = trim($ids,',');
        return $this->delete($ids);
    }



}
